package org.zkoss.zktc.core.junit;

import junit.framework.Assert;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.zkoss.zktc.core.GenericTestCase;

public class TestCaseBase extends GenericTestCase{

	
	
	
	@BeforeClass
	static public void beforeClass(){
		GenericTestCase.beforeClass();
	}
	
	@AfterClass
	static public void afterClass(){
		GenericTestCase.afterClass();
	}
	
	/** to assert a null actual value is equals false*/
	protected void assertFalseOrNull(String msg,Boolean actual){
		if(actual==null || Boolean.FALSE.equals(actual)){
			return;
		}
		Assert.assertFalse(msg,actual);
	}
	/** to assert a null actual value is equals false*/
	protected void assertFalseOrNull(Boolean actual){
		assertFalseOrNull(null,actual);
	}

	
	
}
